Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Thank You All...It is working..

Hi,

Thank you all for the help...I have modified the code and it is working fine now.

Sub Initialize
Dim s As New NotesSession
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim filesys As String
Dim FullPath As String
Dim OUName As String
Dim FileName As String
Dim Path As string
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim Object As NotesEmbeddedObject
Dim IDFile As string

Set uidoc = ws.CurrentDocument
OUName = uidoc.FieldGetText( "OUName" )
FileName = uidoc.FieldGetText( "FileName" )
IDFile = uidoc.FieldGetText( "IDFile" )

Set doc = uidoc.document
Call uidoc.Save
Dim FullPath1 As Variant
FullPath = doc.GetItemValue("FullPath")(0)
Dim rtitem As New NotesRichTextItem (doc, "FileName")
Set Object = rtitem.EmbedObject(EMBED_ATTACHMENT,"",IDFile,OUName)
Call doc.Save(True,True)
End Sub


Feedback response number WEBB94WGQY created by ~Howard Nimnukonygon on 02/14/2013

Error in Code (~Howard Nimnuko... 13.Feb.13)
. . I think the field Fullpath is not a... (~Denise Lopnipl... 13.Feb.13)
. . . . Error in Code (~Howard Nimnuko... 14.Feb.13)
. . . . . . where is this code running?? (~Denise Lopnipl... 14.Feb.13)
. . . . . . . . Reply (~Howard Nimnuko... 14.Feb.13)
. . Try declaring rtitem as NotesRichTe... (~August Cispone... 13.Feb.13)
. . Fullpath not Filename (I think) (~Justin Chugero... 14.Feb.13)
. . . . Still, Problem exists (~Howard Nimnuko... 14.Feb.13)
. . . . . . code (~Denise Lopnipl... 14.Feb.13)
. . . . . . . . Thank You All...It is working.. (~Howard Nimnuko... 14.Feb.13)
. . . . . . . . . . You may want to clean up your code ... (~Dan Kikiterobu... 14.Feb.13)
. . . . . . . . . . . . Thank You Karl......... (~Howard Nimnuko... 15.Feb.13)
. . . . . . . . . . . . . . I am curious... (~Dan Kikiterobu... 15.Feb.13)
. . . . . . . . . . . . . . . . No (~Howard Nimnuko... 27.Mar.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS